package org.jeecg.modules.scm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.scm.dto.FinaTaskDto;
import org.jeecg.modules.scm.entity.ScmFinaApply;
import org.jeecg.modules.scm.entity.ScmReceivables;
import org.jeecg.modules.scm.vo.FinaApplyTaskVo;

import java.util.List;

/**
 * @Description: scm_fina_apply
 * @Author: jeecg-boot
 * @Date: 2021-11-10
 * @Version: V1.0
 */
public interface ScmFinaApplyMapper extends BaseMapper<ScmFinaApply> {
    /**
     * 根据用户获取相关融资申请的列表信息
     * @param username
     * */
    List<ScmFinaApply> getApplyInfo(String username);

    /**
     * 回显申请号相关信息
     * @param finaTaskDto
     * */
    FinaApplyTaskVo getInfoByApplyNo(FinaTaskDto finaTaskDto);

    /*获取关联应收账款*/
    List<ScmReceivables> getReceivables(Integer applyNo);

    /*
     * 获取用户机构
     * */
    String getUserOrg(@Param(value="id") String id);
}
